package HomeWork1;

public class Dog extends Animal implements Swim{
    public Dog(){

    }
    public Dog(String name, int age, String color){
        super(name, age, color);
    }
    public void eat(){
        System.out.println(name+","+age+","+color+"狗吃骨头");
    }
    public void lookHome(){
        System.out.println(name+","+age+","+color+"狗看家");
    }
    public void swim(){
        System.out.println(name+","+age+","+color+"狗刨");
    }

}
